package processors;

import java.awt.Rectangle;
import java.awt.image.RenderedImage;

import javax.media.jai.PlanarImage;

public class ROIProcessor extends Processor<PlanarImage, PlanarImage> {

    @Override
    public void process(PlanarImage image) {
        Rectangle rectangle = new Rectangle(0,45, image.getWidth(), 130);
        image = PlanarImage.wrapRenderedImage((RenderedImage)image.getAsBufferedImage(rectangle, image.getColorModel()));
        setOutput(image);
    }
}
